package com.wz.jiangsu.main;

import org.springframework.util.StopWatch;

/**
 * @program: wz
 * @author: wangzhou
 * @create: 2024-06-06 10:33
 * @description:
 **/
public class TestStopWatch {

        public static void main(String[] args) throws InterruptedException {
            test1();
        }

        public static void test1() throws InterruptedException {
            StopWatch sw = new StopWatch("test");
            sw.start("task1");
            // do something
            Thread.sleep(100);
            sw.stop();
            System.out.println("sw.prettyPrint()~~~~~~~~~~~~~~~~~");
            System.out.println(sw.prettyPrint());
        }
}
